var request = require('request');
request.post(
  	{
  		url:'http://localhost:9797/javaserver', 
		body : JSON.stringify({data: "hello"})
	},
    function (error, response, body) {
	  if (!error && response.statusCode == 200) {
	  	 console.log(body);
	  }
    }
);